Entity Switch
Switch is the Entity definition for a switch.
Subclass of Usable.
Functions
IsOn () | IsOn returns true if the switch is triggered. |
IsBrainExtractor () | IsBrainExtractor returns true if the switch is a brain extractor. |
GetKeyTagName () | GetKeyTagName returns the tag name for this switch to open. |
Fields
isSwitch | Indicates that the object is a switch. |
Functions
- IsOn ()
-
IsOn returns true if the switch is triggered.
Returns:
-
A boolean indicating if the switch is triggered.
- IsBrainExtractor ()
-
IsBrainExtractor returns true if the switch is a brain extractor.
Returns:
-
A boolean indicating if the switch is a brain extractor.
- GetKeyTagName ()
-
GetKeyTagName returns the tag name for this switch to open.
Returns:
-
A string indicating the switch tag name.